<template>
    <div>
        <h3>代办事项</h3>
        <div>
            <div v-for="(i,index) in noDo" :key="index" class="txt_out">
                <span class="txt">{{i}}</span>
                <span class="tag" @click="$emit('deleteThing',index,'noDo')">删除</span>
                <span class="tag" @click="$emit('doneThing',index,i)">完成</span>
            </div>
        </div>
    </div> 
</template>

<script>
export default {
    props:['noDo']
}
</script>